package dhbw.GUI.Window;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;

import dhbw.Data.Language;
import dhbw.Data.Settings;
import dhbw.GUI.Panels.PanelChangePassword;
import Main.MyController;

public class WindowChangePassword extends JFrame{

	private MyController myc;
	
	public WindowChangePassword(MyController myc)
	{
		this.myc = myc;
		build();
	}
	
	/**
	 * Build JFrame
	 */
	private void build()
	{
		this.setLocation(100, 100);
		this.setBackground(Settings.BG_COLOR);
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.setIconImage(Settings.LOGO_ICON.getImage());
		this.setSize(200, 200);
		this.setResizable(false);
		this.setTitle(Settings.APPLICATION_NAME+" - "+Language.CHANGEPASSWORD[myc.getLanguage()]);
	
		this.add(BorderLayout.CENTER, new PanelChangePassword(this.myc, this));
		this.setVisible(true);
		this.pack();
		myc.centerJFrame(this);
	}
	
	
	
	
}
